import { createApp } from 'vue'
import router from './router'
import pinia from './stores'  //引入
import '@/utils/permission' // permission control
import '@/assets/style/index.scss'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from "element-plus/es/locale/lang/zh-cn";//国际化


const app = createApp(App);

app.use(pinia)
app.use(router)
app.use(ElementPlus, { locale: zhCn })


//全局注册图标组件
// for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
//   app.component(key, component)
// }


app.mount('#app')